import request from '@/utils/request'

const api_name = "/admin/course/video" 

export default {   
    getPageList(videoVo){
        return request({
            url:`${api_name}`, 
            method: 'get',      //请求方式
            params: videoVo //参数
          })
    },
//删除
    DeleteVideo(id){
      return request({
        url:`${api_name}/${id}`, 
        method: 'delete',      //请求方式
      })
    },
//数据回显
    SelectByID(id){
      return request({
        url:`${api_name}/${id}`, 
        method: 'get',
      })
    },
//更新
    Updata(videoVo){
      return request({
        url:`${api_name}`, 
        method: 'put',
        data: videoVo
      })
    },

//添加
    Add(videoVo){
      return request({
        url:`${api_name}`, 
        method: 'post',
        data: videoVo
      })
    },
    //获取当前登录用户的id
    GetId(){
      return request({
        url:`${api_name}/GetMyId`, 
        method: 'get',
      })
    }
  
    
}